﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Business.ValueObject.Context;
using DataAccess.UnitTransaction.Contract;

namespace Business.Common.Factory
{
    public class UnitTransactionFactory
    {
        public static IUnitTransaction CreateUnitOfWork(VOServiceContext serviceContext)
        {
            IUnitTransaction uow = DependencyFactory.Resolve<IUnitTransaction>();
            uow.SetContext(serviceContext);

            return uow;
        }
    }
}
